package com.rj.bd;
/**
 * @desc   
 * @author lipf
 * @time
 */
public class Test06 {

	public static void main(String[] args) {
		int [] a = {8,6,2,1,5,6,7,4,2,8};
		for(int i =0;i<a.length;i++)
		{
			for(int j =i+1;j<a.length;j++)
			{
				if (a[i]==a[j])
				{
					System.out.println("重复的数字是"+a[i]+"在"+j);
				}
			}
		}
		
		
      
	}

}
